import {
    server
} from '../../api/request.js';
//获取学生全部成绩
export function get_score() {
    return server(
        'GET',
        '/stu/mongo/y/getAllScore',

    )

}
//获取课表
export function get_kebiao(data) {
    return server(
        'GET',
        '/stu/mongo/y/getSchedule',
        data
    )

}

//获取校外考试
export function get_cet(data) {

    return server(
        'GET',
        '/stu/mongo/y/getCET',
        data
    )
}
//获取显示类型
export function get_show() {

    return server(
        'GET',
        '/stu/test/getStatus',

    )
}

//获取全部成绩
export function get_all_score(data) {

    return server(
        'GET',
        '/stu/mongo/y/getScore',
        data
    )
}

//获取公选课学分及平均分
export function get_gxk() {

    return server(
        'GET',
        '/stu/mongo/y/getAvg'

    )
}
//获取学生x学期成绩
export function get_xqcj(data) {

    return server(
        'GET',
        '/stu/mongo/y/getScore',
        data)
}
//获取学期选项
export function get_xq_type() {
    return server(

        'GET',
        '/stu/mongo/y/getXq',
    )
}

//获取轮播图
export function get_lunbo() {
    return server(

        'GET',
        '/stu/noToken/showRotationPlot',
    )
}

//获取公告

export function showAnnouncement() {
    return server(

        'GET',
        '/stu/noToken/showAnnouncement',
    )
}
//上传图片
export function upload_img(data) {
    return server(
        'POST',
        '/comment/uploadLeaveImgs',
        data
    )
}

//获取留言列表
export function showMessage(data) {

    return server(

        'POST',
        '/comment/getLeaveMessageList',
        data
    )
}

//推送消息
export function sendMessage(data) {
    return server(
        'POST',
        '/comment/wx/send',
        data
    )
}

//发送留言
export function pushMessage_ly(data) {
    return server(
        'POST',
        '/comment/sendLeaveMessage',
        data
    )
}

//获取评论列表
export function get_pl_list(data) {
    return server(
        'POST',
        '/comment/getMessageList',
        data
    )
}

//发送评论
export function push_pl(data) {
    return server(
        'POST',
        '/comment/sendComment',
        data
    )
}

//回复评论
export function reply_pl(data) {
    return server(
        'POST',
        '/comment/sendReply',
        data
    )
}

//点赞/踩
export function dianzan(data) {
    return server(
        'POST',
        '/comment/typeMessageLike',
        data
    )
}
//获取表情包
export function getEmojis() {
    return server(
        'GET',
        '/comment/getEmojis',

    )
}
//获取留言状态

export function getLikeStatus(data) {
    return server(
        'POST',
        '/comment/getLikeStatus',
        data
    )
}

//删除留言
export function deleteMessage(data) {
    return server(
        'POST',
        '/comment/deleteLeaveMessage',
        data
    )
}

//删除评论
export function deleteComment(data) {
    return server(
        'POST',
        '/comment/deleteComment',
        data
    )
}

//删除回复
export function deleteReply(data) {
    return server(
        'POST',
        '/comment/deleteReply',
        data
    )
}
//获取回复列表
export function getReplyList(data) {
    return server(
        'POST',
        '/comment/getReplyList',
        data
    )
}

//绑定情侣课表
export function bind_qinglv(data) {
    return server(
        'POST',
        '/api/auth/love/bindings',
        data
    )
}
//获取情侣课表信息
export function get_qinglv(id) {
    return server(
        'POST',
        `/stu/mongo/y/getLoveMsg?week=1&semesterId=${id}`,
    )
}
//解除情侣课表绑定
export function unbind_qinglv() {
    return server(
        'POST',
        '/api/auth/love/unBindings',
   
    )
}

//获取评教列表
export function get_PJ_list() {
    return server(
        'GET',
        '/stu/mongo/y/getPj',
    )
}
//一键评教
export function YJPJ(data) {
    return server(
        'POST',
        '/stu/mongo/y/pj',
       data 
    )
}